# -*-coding:utf-8-*-
from django.conf.urls import url
from rest_framework.routers import DefaultRouter

from calculator.api.views import AreaCodeListAPIView, IndusAverWageAPIView, IndusNurseWageAPIView, \
    FuneralExpenseAPIView, \
    IncomeExpendItemViewSet, ResIncomeExpendViewSet, IndustryViewSet, IndusAverWageViewSet, ProvinceListAPIView, \
    CityListAPIView, CalculatorAPIView

router = DefaultRouter()
router.register(r'industry', IndustryViewSet, basename="industry")
router.register(r'indust_wage', IndusAverWageViewSet, basename="indust-wage")
router.register(r'item', IncomeExpendItemViewSet, basename="item")
router.register(r'res_income_expend', ResIncomeExpendViewSet, basename="res-income-expend")

urlpatterns = [
    url(r'^area_code_list/$', AreaCodeListAPIView.as_view(), name='area-code-list'),
    url(r'^province_list/$', ProvinceListAPIView.as_view(), name='province-list'),
    url(r'^city_list/$', CityListAPIView.as_view(), name='city-list'),
    url(r'^indust_aver_wage/$', IndusAverWageAPIView.as_view(), name='indust-aver-wage'),
    url(r'^indust_nurse_wage/$', IndusNurseWageAPIView.as_view(), name='indust-nurse-wage'),
    url(r'^funeral/$', FuneralExpenseAPIView.as_view(), name="calc-funeral-expense"),
    url(r'^compute/$', CalculatorAPIView.as_view(), name="calc-compute"),
]

urlpatterns += router.urls
